package com.nwcl.basic.dao;


import com.nwcl.basic.entity.CouponsReceive;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
* @author lgq
* @description 针对表【coupons_receive(优惠券领取记录表)】的数据库操作Mapper
* @createDate 2023-05-30 09:39:49
* @Entity .CouponsReceive
*/
@Repository
public interface CouponsReceiveDao {

    List<CouponsReceive> listByUserIdAndTime(@Param("userId") Integer userId, @Param("time") Date time);

    void save(CouponsReceive receive);

    CouponsReceive getById(@Param("id") Integer id);

    void updateStatus(@Param("id") Integer id, @Param("status") Integer status);
}




